home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10672 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: nntp.atlanta.com!jon
  2. From: jon@esisys.com (Jon Friedline)
  3. Newsgroups: comp.lang.c++
  4. Subject: Windows Sockets
  5. Date: 8 Mar 1996 23:10:08 GMT
  6. Organization: Enhanced Systems, Inc.
  7. Message-ID: <4hqegd$ei_001@nntp.atlanta.com>
  8. NNTP-Posting-Host: jon.esisys.com
  9. Keywords: sockets
  10. X-Newsreader: News Xpress Version 1.0 Beta #3
  11.  
  12.  
  13.  
  14. I have a problem with the send() command in MSVC 2.x. I have written
  15. a small web server (like who hasn't) that fails under a loadtest.
  16. It seems that when I load test with Netscape, while in a send() command,
  17. Netscape pops up a "host did a reset" on the connection. This occurs
  18. randomly and only under a high load on a ethernet.
  19.  
  20. Does anyone have any suggestions. I am using a blocking call, and have
  21. issued the non blocking io control
  22.  
  23.     // disable non-blocking mode
  24.     unsigned long ctlopt;
  25.     ctlopt = 0;
  26.     err = ioctlsocket(SocketToSet, FIONBIO, &ctlopt);
  27.     if (err == SOCKET_ERROR) {
  28.         LDS(ERROR_LOG, -1, "failed to set FIONBIO option for socket");
  29.     }
  30.  
  31.  
  32. Any hellp would be greatly appreciated.
  33.  
  34. Jon Friedline
  35.